I'm trying to compare two contents, but I have error because cypress is reading
as text, so if you have something like this
Some title
dummy text
and if you have assertions for eg.
cy.get('[data-testid="content"]').should('contain.text', 'Some title dummy text');
});
You will get error I already tried the following:
should(have.text, 'Some title dummy text'), (include.text, 'Some title dummy text') and
cy.get('[data-testid="content"]').contains('Some title dummy text')
Does someone has solution for this?